pub mod ios {

    use std::fs;

    pub fn read_file(name: String) {
        println!("input file name {}", name);
        let contents = fs::read_to_string(name).expect("出错了");
        println!("contents {}", contents);
    }

    pub fn read_data(name: String) {
        println!("input file name {}", name);
        let result = fs::read_to_string(name);
        match result {
            Ok(string) => { println!("contents {}", string)},
            _ => { println!("contents error");}
        }
    }

    pub fn read_byte(name: String) {
        println!("input file name {}", name);
    }
}